// Oblicza warto bezwzgldn liczby cakowitej

#import <Foundation/Foundation.h>

int main (int argc, char *argv[])
{
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];

    int number;

    NSLog (@"Wpisz liczb: ");
    scanf ("%i", &number);

    if ( number < 0 )
        number = -number;

    NSLog (@"Warto bezwzgldna tej liczby to %i", number);

     [pool drain];
    return 0;
}